<?php View::display('user/menu');?>
<style type="text/css">
.topic {
	margin-bottom: auto;
}

.topic a {
	color: #3DA639;
}
</style>
<div class="span9">
	<div class="articles">
		<?php foreach ($params['articles'] as $key => $article){
		$iconPath = !empty($article['iconPath']) && file_exists('img/article/icon/'.$article['iconPath'])?
		'img/article/icon/'.$article['iconPath']: 'images/article.jpg'
		
		?>
		<div class="article">
			<div class="span1" style="vertical-align: middle; line-height: 68px;"><img src="<?php echo $iconPath;?>" /></div>
			<div class="span6">
				<h4 class="topic"><a target="_blank" href="index.php?page=article&id=<?php echo $article['id'];?>"><?php echo $article['title'];?></a></h4>
				<div class="discription muted"><?php echo $article['description'];?></div>
				<div class="date">
					<i class="icon-calendar"></i>
					<?php
					$time = is_null($article['modifyTime'])? new DateTime($article['createTime']): new DateTime($article['modifyTime']);
					echo $time->format('j/m/Y');
					?>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
		<hr class="hr-bottom" />
		<?php }?>
	</div>
</div>
<div class="clearfix"></div>